<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增岗位')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-post-add">
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">一级目录：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="firmenu" id="firmenu" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">一、二级关系：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="firrelation" id="firrelation" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">二级目录：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="secmenu" id="secmenu" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">二、三级关系：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="secrelation" id="secrelation" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">三级目录：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="thrmenu" id="thrmenu" required>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "company/relation";
	    
		$("#form-post-add").validate({
		    focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/add", $('#form-post-add').serialize());
	        }
	    }
	</script>
</body>
</html>
